package com.zib.bilibili.model;

import com.zib.bilibili.MyApp;
import com.zib.bilibili.api.ApiStore;
import com.zib.bilibili.api.UrlConstant;
import com.zib.bilibili.bean.GifttopBean;
import com.zib.bilibili.utils.MD5utils;

import retrofit2.Callback;

/**
 * Created by Administrator on 2016/7/7.
 */
public class GiftTopModel implements IGiftTopModel {
    @Override
    public void getLiveData(Callback<GifttopBean> callback,int roomid) {
        ApiStore.getInstance()
                .getApiService()
                .getGiftTop(""+roomid, MD5utils.getMD5(UrlConstant.APPROOM_GIFTTOP_KVP+"&room_id="+roomid+ MyApp.APP_SECRET))
                .enqueue(callback);
    }
}
